package com.talos.ums.controller.admin.userorganization.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 用户组织关系表 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UmsUserOrganizationRespVO {

    @Schema(description = "用户-组织机构-中间表主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "7813")
    @ExcelProperty("用户-组织机构-中间表主键")
    private Long id;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "31237")
    @ExcelProperty("用户id")
    private Long userId;

    @Schema(description = "组织机构ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15742")
    @ExcelProperty("组织机构ID")
    private Long organizationId;

    @Schema(description = "用户账号")
    @ExcelProperty("用户账号")
    private String userCode;

    @Schema(description = "组织编码")
    @ExcelProperty("组织编码")
    private String organizationCode;

    @Schema(description = "")
    @ExcelProperty("")
    private String allParentsCode;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "创建人id", example = "244")
    @ExcelProperty("创建人id")
    private Long creatorId;

    @Schema(description = "创建人工号")
    @ExcelProperty("创建人工号")
    private String creatorCode;

    @Schema(description = "创建人姓名", example = "王五")
    @ExcelProperty("创建人姓名")
    private String creatorName;

    @Schema(description = "修改时间")
    @ExcelProperty("修改时间")
    private LocalDateTime modifyTime;

    @Schema(description = "修改人id", example = "25225")
    @ExcelProperty("修改人id")
    private Long modifierId;

    @Schema(description = "修改人工号")
    @ExcelProperty("修改人工号")
    private String modifierCode;

    @Schema(description = "修改人姓名", example = "芋艿")
    @ExcelProperty("修改人姓名")
    private String modifierName;

    @Schema(description = "租户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "8959")
    @ExcelProperty("租户id")
    private Long tenantId;

}
